<link href="/bemigo/styles/main.css" rel="stylesheet" type="text/css">
<script src="http://connect.facebook.net/en_US/all.js"></script>
<html>
<body>
	<div id="header">
		<div class="container">
		<a href="/" id="headerLogo">Bemigo</a>
		<div id="headerDashboard">
			<img src='https://graph.facebook.com/<?php echo $this->user_id?>/picture?type=square' height="40" width="40" />
			<ul>
				<li><a href="#" id="friends">Friends</a></li>
				<li><a href="#" id="matches">Matches</a></li>
				<li><a href="#" id="messages">Messages</a></li>
				<li><a href="#" id="search">Search</a></li>
			</ul>
		</div>
			<!-- <div id="login"><a href="/index/logout" class="btnGray">Logout</a></div> -->
			<div id="fb-root"></div>
			<div class="clear"></div>
		</div>
	</div>
		<div class="container">
			<div class="a">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
				<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			</div>
			<div class="b">
				<h2>My Bemigos</h2>
					<h3>Below is a list of...</h3>
					<div class="panel">
						<div id="friendsListHead"></div>
						<div id="chooseFriendDiv">
							<ul id='chooseFriendList'>
								<?php foreach ($this->bemigos as $bemigo) { ?>
									<li id='<?php echo $bemigo->getFacebookId()?>' data-tags='<?php echo $bemigo->getName()?>'>
										<img src='https://graph.facebook.com/<?php echo $bemigo->getFacebookId()?>/picture?type=square' height='60' width='60'></img><div><?php echo $bemigo->getName()?></div>
										<div class='clear'></div>
									</li>
								<?php }?>
							</ul>
						</div>
					</div>
			</div>
			<div class="c">
				<h2>Sponsors</h2>
					<p>Ads go here</p>
			</div>
			<div class="clear"></div>
		</div>
<script>
YUI().use('node', 'event-custom', 'cache', 'json-parse', 'anim', 'autocomplete', 'autocomplete-filters', 'autocomplete-highlighters', function(Y) {
	//Initialize Facebook Javascript SDK
	FB.init({
	    appId  : '<?php echo $this->fb_app_id?>',
	    status : true, // check login status
	    cookie : true, // enable cookies
	    xfbml  : true  // parse XFBML
	  });

	//Check Facebook Login status. If not logged in display FB Login button; else trigger logged in event
	FB.getLoginStatus(function(response) {
		if (response.session) {
			Y.fire('fbuser:loggedin');
		}
	});

	//If user is logged in, display friends list
	Y.on('fbuser:loggedin', function(){
	});

});
</script>
</body>
</html>